#ifndef _HEAD_H
#define _HEAD_H
#include<my_head.h>
#endif

#ifndef _USER_H
#define _USER_H
#include "user.h"
#endif


#define MAX_USER_SIZE 1000
typedef User * Buckets;
typedef struct UserManager
{
        //User *users;
        Buckets * users;
        int curr_user_size;
        int max_size;
        uint32_t seed;
        //struct epoll_event[MAX_USER_SZIE];
}User_manager;

extern void create_and_init_userM( User_manager * );


extern bool um_add_user(User_manager * manager , User * user);


//找到user ， 没有就返回NULL
extern struct user * um_judge_user_exist_by_token(const char * , User_manager *);
